﻿<HTML>

<HEAD>
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">

<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">

<meta HTTP-EQUIV="expires" CONTENT="0">

<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

<TITLE>Ants Web Client</TITLE>

		<style>
			body {
				margin-left:0px;
				margin-top:0px;
				margin-right:0px;
				margin-bottom:0px;
			}
		</style>
		
	<script language="javascript">
			function NotifyActiveX(p)
  			{
					var ants_dvr = document.getElementById('ants_dvr');
					if (ants_dvr == null) return;
					
					var url = window.location.toString();
                    var strs = url.split('?');
                    var strss = strs[1].split('&');
                    
                    var strUserName = strss[0].split('=');
                    var lpUserName = strUserName[1];
                    
                    var strPassword = strss[1].split('=');
                    var lpPassword = strPassword[1];
                    
                    var strDVRIpV4 = strss[2].split('=');
                    var lpDVRIpV4 = strDVRIpV4[1];
                     
                    var strManagerHostIpV4 = strss[3].split('=');
                    var lpManagerHostIpV4 = strManagerHostIpV4[1];
                    
                    var strDVRPort = strss[4].split('=');
                    var wDVRPort = strDVRPort[1];
                    
                    var strManagerHostPort = strss[5].split('=');
                    var wManagerHostPort = strManagerHostPort[1];
                    
                    var strSerialNo = strss[6].split('=');
                    var szSerialNo = strSerialNo[1];
					try	{
					      ants_dvr.SetDVRIP(lpUserName,lpPassword,lpDVRIpV4,lpManagerHostIpV4,wDVRPort,wManagerHostPort,szSerialNo);
					   } 
					catch (e) {
						//alert('SetDVRIP erro');
						return false;
					}
					
					var   r   =  document.getElementById('url_isDownload');
					r.style.display= 'none'; 
			
				}
				

	</script>

</HEAD>

<BODY>
	<!--<div id="url_isDownload" ><a href="VideoActiveX.exe" style="font-size: x-small">正在下载插件，如下载失败，点此链接下载(Downloading activx,please wait or click here!)</a></div>
-->
<OBJECT ID="ants_dvr" WIDTH="99%" HEIGHT="100%"

 CLASSID="CLSID:B914103A-715A-4be1-8CFA-032824E6686B"
 
 onReadyStateChange="NotifyActiveX(this)"
 >
    <PARAM NAME="_Version" VALUE="65536">

    <PARAM NAME="_ExtentX" VALUE="4657">

    <PARAM NAME="_ExtentY" VALUE="4075">

    <PARAM NAME="_StockProps" VALUE="0">

</OBJECT>

</BODY>
</HTML>


